package com.platform.usercenter.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.platform.common.core.annotation.Excel;
import com.platform.common.core.web.domain.BaseEntity;

/**
 * 用户与部门关联对象 sys_user_dept
 *
 * @author platform
 * @date 2023-03-30
 */
public class SysUserDept extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 用户ID */
    private Long userId;

    /** 部门ID */
    private Long deptId;

    /** 是否默认部门 */
    @Excel(name = "是否默认部门")
    private String isDefault;

    /** 用户部门类型(airCargo:货站,airAgency:货代,airline:航司,airPersonal:散货) */
    @Excel(name = "用户部门类型(airCargo:货站,airAgency:货代,airline:航司,airPersonal:散货,airOther:其他)")
    private String userDeptType;

    private String userDeptTypeRefCode;

    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setDeptId(Long deptId)
    {
        this.deptId = deptId;
    }

    public Long getDeptId()
    {
        return deptId;
    }
    public void setIsDefault(String isDefault)
    {
        this.isDefault = isDefault;
    }

    public String getIsDefault()
    {
        return isDefault;
    }
    public void setUserDeptType(String userDeptType)
    {
        this.userDeptType = userDeptType;
    }

    public String getUserDeptType()
    {
        return userDeptType;
    }

    public String getUserDeptTypeRefCode() {
        return userDeptTypeRefCode;
    }

    public void setUserDeptTypeRefCode(String userDeptTypeRefCode) {
        this.userDeptTypeRefCode = userDeptTypeRefCode;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("userId", getUserId())
            .append("deptId", getDeptId())
            .append("isDefault", getIsDefault())
            .append("userDeptType", getUserDeptType())
            .append("userDeptTypeRefCode", getUserDeptTypeRefCode())
            .toString();
    }
}
